from pymysql import connect
con = connect(host="127.0.0.1",port=3306,user="root",password="123456",db="user")
cursor1 = con.cursor()
sql = "select * from student"
cursor1.execute(sql)
login_information = cursor1.fetchall()



def panduan_login(name, password):
	for item in login_information:
		if item[0] == name and item[2]==password:
			return "true"


# def panduan_liebiao():
# 	a = login_information
# 	return a
